# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gstreamermm
pkgver=1.10.0
pkgrel=2
pkgdesc="C++ interface for GStreamer"
url="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
arch="all"
license="LGPL"
makedepends="glibmm-dev gst-plugins-base-dev"
checkdepends="gtest-dev"
options="!check" #tests are broken
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/gstreamermm/${pkgver%.[0-9]*}/$pkgname-$pkgver.tar.xz
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	export CXXFLAGS="$CXXFLAGS -std=c++11"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

check() {
	cd "$builddir"
	make check
}
sha512sums="34eeb9eec5958c96acf7c7791eef80138e5d55fea6ddf1bf9ace6b1ec7f052da2abf04d87089e4c9ead51c631ef7afceaf9fceb946ec3d105da522187c69e429  gstreamermm-1.10.0.tar.xz"
